<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
    <meta name="description" content="Light Year Admin V5是一个基于Bootstrap v5.1.3的后台管理系统的HTML模板。">
    <meta name="author" content="yinq">
    <title>首页 - 文档</title>
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <!-- 基础样式库 -->
    <link rel="stylesheet" type="text/css" href="{{cdn}}/static/v5/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="{{cdn}}/static/v5/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="{{cdn}}/static/v5/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="{{cdn}}/static/v5/css/style.min.css">
    <!-- 功能插件样式 -->
    <link rel="stylesheet" href="{{cdn}}/static/v5/js/bootstrap-table/bootstrap-table.min.css">
    <link rel="stylesheet" type="text/css" href="{{cdn}}/static/v5/js/jquery-confirm/jquery-confirm.min.css">
</head>
<style>
    .card-body {
     height: 100vh;
   }
</style>
<body>
<div class="container-fluid">

    <div class="row">

        <div class="col-lg-12">
            <div class="card">
                <header class="card-header">
                    <div class="card-title">默认文档</div>
                </header>
                <div class="card-body">
                    <div class="callout callout-danger mb-3">

                        <p>默认文档，优先级由前至后。每个用 , 隔开</p>


                    </div>
                    <div class="mb-3 col-md-12">
                        <textarea name="descOne" rows="10" cols="30" id="Index"
                                  class="form-control">{{ data }}</textarea>
                    </div>
                    <button class="btn btn-primary me-1 btn-sm" type="button" onclick="GetIndex()">添加</button>

                </div>
            </div>
        </div>

    </div>
</div>
</div>
<script type="text/javascript" src="{{cdn}}/static/v5/js/jquery.min.js"></script>
<script type="text/javascript" src="{{cdn}}/static/v5/js/popper.min.js"></script>
<script type="text/javascript" src="{{cdn}}/static/v5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{cdn}}/static/v5/js/bootstrap-notify.min.js"></script>
<script type="text/javascript" src="{{cdn}}/static/v5/js/jquery-confirm/jquery-confirm.min.js"></script>
<!--表格插件js-->
<script src="{{cdn}}/static/v5/js/bootstrap-table/bootstrap-table.js"></script>
<script src="{{cdn}}/static/v5/js/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<!-- 弹框 -->
<script type="text/javascript" src="{{cdn}}/static/v5/example/js/layer/layer.js"></script>
<script type="text/javascript" src="{{cdn}}/static/js/switch_directory.js"></script>
<script>
    function GetIndex() {
        var Index = $("#Index").val();
        var data = {
            'Index': Index
        };
        $.ajax({
            url: "/GetIndex/",
            type: "post",
            data: data,
            dataType: "json",
            success: function (data) {
                layer.msg(data.msg,{icon: 'success'});
            }
        });
    }
</script>
</body>
</html>
